package com.czxy.changgou3.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/4/22
 */
@Table(name="tb_specification")
@Data
public class Specification {
    @Id
    private Integer id;

    @Column(name="spec_name")
    private String specName;

    @Column(name="category_id")
    private Integer categoryId;

    //一个规格拥有多个规格选项
    private List<SpecificationOption> options = new ArrayList<>();
}
